package com.buli.service;

import com.buli.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;


public interface UserService {
    User getUserById(Integer id);

    User getUserByName(String username);

    int insertUser(User user);

    int updateUser(User user);

    int deleteUser(Integer id);

    int deleteUsers(Integer[] ids);

    List<User> getUserList();

    List<User> getUserListByPage(int pageNum, int pageSize);

    int getUserCount();

    List<User> getUserListByPageAndSort(int pageNum, int pageSize, String sort);
}